import router from '@/router'
import filterRouter from '@/plugins/filterRouter'

export default {
  setRouter(state, payload) {
    let route = filterRouter(payload)
    router.addRoutes(route)
    state.routeData = route
  }
}
